Prevent Docker build failures and dependency drift by pulling base images locally before running docker build.